<#--Search Box -->
<#macro search>
<form id="search" action="" method="post">
	<input type="text" name="keyword" /> <button class="searchbutton"></button>
</form>
</#macro>

<#--Tab Menu-->
<#macro buildTabMenu menu>
<div class="tabmenu">
	<ul>
		 <#list menu as x>
	      	<li <#if x.active==true>class="current"</#if>><a href="<@spring.url relativeUrl=x.url />" class="${x.cssClass}"><span>${x.text}</span></a></li>	    	
        </#list>
    </ul>
</div><!-- tabmenu -->
</#macro>

<#--Top header: Notification,...-->
<#macro topHeader>
<div class="topheader">
    <ul class="notebutton">
        <li class="note">
            <a href="pages/message.html" class="messagenotify">
                <span class="wrap">

                    <span class="thicon msgicon"></span>
                    <span class="count">1</span>
                </span>
            </a>
        </li>
        <li class="note">
        	<a href="pages/info.html" class="alertnotify">
            	<span class="wrap">

                	<span class="thicon infoicon"></span>
                    <span class="count">5</span>
                </span>
            </a>
        </li>
    </ul>
</div><!-- topheader -->
</#macro>

<#--Account Infor-->
<#macro accountInfor>
	<#if model?? && model.loginUser??>
		<div class="accountinfo">
			<img src='<@spring.url relativeUrl="/public/images/avatar.png"/>' alt="Avatar" />
		    <div class="info">
		    	<h3>${model.loginUser.lastName} ${model.loginUser.middleName} ${model.loginUser.firstName}</h3>
		        <small>${model.loginUser.email!"N/A"}</small>
		        <p>
		        	<a href="<@spring.url relativeUrl="/user/${model.loginUser.id}"/>">Account Settings</a> <a href='<@spring.url relativeUrl="/logout.html"/>'>Logout</a>
		        </p>
		    </div><!-- info -->
		</div><!-- accountinfo -->
	</#if>
</#macro>

